package com.woniuxy.business.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.commons.entity.Activity;
import com.woniuxy.commons.entity.QueryEntity;
import com.woniuxy.commons.utils.ResponseResult;

import java.util.List;

/**
 * @author 雷珉
 * @date 2022年06月08日 16:27
 */
public interface ActivityService {
    ResponseResult<List<Activity>> findAll();

    ResponseResult<PageInfo<Activity>> findAllByCondition(QueryEntity<Activity> queryEntity);

    ResponseResult<Activity> findOne(int id);

    ResponseResult addOne(Activity activity);

    ResponseResult deleteOne(int id);

    ResponseResult deleteBatch(int[] ids);

    ResponseResult updateOne(Activity activity);
}